

#ifndef __SYSTEM_H
#define __SYSTEM_H

#define SAVE_QUOTA_NUM  7

extern u8 balance[6];

typedef enum{

	KEYBOARD_CHECK,
	KEYBOARD_CONSUME_F0,
	KEYBOARD_CONSUME_F1,
	KEYBOARD_CONSUME_F2,
	KEYBOARD_CONSUME_F3,
	KEYBOARD_PASSWORD,
}KEYBOARD_MODE;
void system_init(void);

void system_main(void);

void eeprom_in_quota(void);

extern void system_clean();

extern void dec_to_decascii(u8 *des,u8 *src,u8 len,u8 half);
extern void consume_money(void);
extern void set_quota(void);
extern void set_fixed_money(void);
extern void set_quota_consume_mode(void);

extern void rst_balance(void);

extern static KEYBOARD_MODE keyboard_mode;


#endif

